import React from 'react';
import ReactDOM from 'react-dom';
import AppComponent from './components/Main';
import store from './stores/store';


import {
	Provider
} from 'react-redux'
// import {
// 	addTodo,
// 	toggleTodo,
// 	setVisibilityFilter
// } from './actions/actions'
//
// const unsubscribe = store.subscribe(() =>
// 	console.log(store.getState())
// )
//
// store.dispatch(addTodo('啦啦'))
// store.dispatch(toggleTodo(0))

ReactDOM.render(
	<Provider store={store}>
    <AppComponent />
  </Provider>,
	document.getElementById('app')
);